package by.bsu.diploma;

import by.bsu.diploma.common.Word;
import by.bsu.diploma.ga.GeneticAlgorithm;
import by.bsu.diploma.system.Configuration;
import by.bsu.diploma.system.factory.CrosswordFactory;
import by.bsu.diploma.system.factory.impl.ClassicCrosswordFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Anatoly Selitsky
 */
public class Main {

    public static void main(String[] args) {
        List<Word> words = new ArrayList<Word>();
        words.add(new Word(4, 2));
        words.add(new Word(3, 1));
        words.add(new Word(5, 1));
        Configuration configuration = new Configuration(10, 10, words);
        GeneticAlgorithm algorithm = new GeneticAlgorithm(configuration);
        algorithm.run();
        /*CrosswordFactory crosswordFactory = new ClassicCrosswordFactory();
        crosswordFactory.generate(configuration);*/
    }

}
